home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93b.txt
/
000091_icon-group-sender _Fri May 14 18:11:03 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-06-16
|
1KB
Received: from owl.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Sat, 15 May 1993 09:22:45 MST
Received: by owl.cs.arizona.edu; Sat, 15 May 1993 09:22:43 MST
Date: Fri, 14 May 93 18:11:03 CDT
From: John David Stone <stone@HILBERT.MATH.GRIN.EDU>
Message-Id: <9305142311.AA24639@HILBERT.MATH.GRIN.EDU>
To: icon-group@cs.arizona.edu
In-Reply-To: Steve Holden's message of Fri, 14 May 93 18:03:46 BST <12646.9305141703@desktop.desktop.co.uk>
Subject: string stripping
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
For stripping hyphens and dots out of a string, Steve Holden
suggests:
bare := ""
badchars := '-.'
full ? {
while bare ||:= tab(many(~badchars)) do
tab(many(badchars))
}
which is tempting, but incorrectly sets bare to "" whenever the value of
full begins with a dot or hyphen.
------ John David Stone - Lecturer in Computer Science and Philosophy -----
-------------- Manager of the Mathematics Local-Area Network --------------
-------------- Grinnell College - Grinnell, Iowa 50112 - USA --------------
-------- stone@math.grin.edu - (515) 269-3181 - stone@grin1.bitnet --------